import request from '@/utils/request'

// 查询轨迹列表
export function listGis(query) {
  return request({
    url: '/tws/orderGis/list',
    method: 'get',
    params: query
  })
}

// 查询轨迹详细
export function getGis(id) {
  return request({
    url: '/tws/orderGis/' + id,
    method: 'get'
  })
}

// 新增轨迹
export function addGis(data) {
  return request({
    url: '/tws/orderGis',
    method: 'post',
    data: data
  })
}

// 修改轨迹
export function updateGis(data) {
  return request({
    url: '/tws/orderGis',
    method: 'put',
    data: data
  })
}

// 删除轨迹
export function delGis(id) {
  return request({
    url: '/tws/orderGis/' + id,
    method: 'delete'
  })
}

// 查询轨迹详细
export function getByOrder(orderId) {
  return request({
    url: '/tws/orderGis/getByOrder/'+orderId,
    method: 'get'
  })
}
